package org.crackjack.services;

import org.crackjack.dao.ProfileDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping(value = "/", headers = "Accept=application/json")
public class CommonController {

    @Autowired
    private ProfileDao profileDao;

//    @RequestMapping(value = "/authorization")
//    @ResponseBody
//    public Map authorization(@RequestBody Authorization authorization) throws JsonParseException, IOException {
//        return profileDao.authorization(authorization.getName(), authorization.getPasswordHash());
//    }

}
